package com.facebook.react.modules.network;

import com.ecourseapp.MainApplication;
import com.facebook.react.bridge.ReactApplicationContext;

import okhttp3.OkHttpClient;


public class NetworkingModuleCreateUtil {
    public static NetworkingModule create(ReactApplicationContext reactApplicationContext) {
        //可以在这里对OkHttpClient添加自己的设置，例如添加ssl的自签名证书
        OkHttpClient okHttpClient = MainApplication.okHttpClient;
        return new NetworkingModule(reactApplicationContext, null, okHttpClient);
    }
}
